package com.javaweb.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.javaweb.admin.entity.KdlTransReport;
import com.javaweb.admin.query.KdlTransReportQuery;
import com.javaweb.admin.vo.transreport.KdlTransReportVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface KdlTransReportMapper extends BaseMapper<KdlTransReport> {
    IPage<KdlTransReportVo> getTransReportList(IPage<KdlTransReportVo> page, @Param("req") KdlTransReportQuery req);

    @Select("select isnull(convert(varchar(10),max(sync_time),112),'20240328') from kdl_trans_report")
    String GetMaxSyncTime();
}
